package com.niit.shopsys;

// 订单结果类
public class OrderCreationResult {
    private boolean success;
    private String orderId;
    private double totalPrice;
    private String error;

    public OrderCreationResult(boolean success, String orderId,
                               double totalPrice, String error) {
        this.success = success;
        this.orderId = orderId;
        this.totalPrice = totalPrice;
        this.error = error;
    }

    public boolean isSuccess() { return success; }
    public String getOrderId() { return orderId; }
    public double getTotalPrice() { return totalPrice; }
    public String getError() { return error; }
}
